11500 PRINT: INPUT "NAME OF FILE CONTAINING MESSAGE ";N$: MF=0
11550 IF N$="QUIT" THEN RETURN
11600 IF N$="" THEN 11500 ELSE GOSUB 30000
11700 PRINT "ENTER MESSAGE NUMBER TO BE SENT (e.g. NR001) "
11800 INPUT "OR TYPE QUIT AND ENTER TO RETURN TO RECEIVE ? "; MN$
11900 IF MN$="QUIT" THEN CLOSE 3: ERROR=0: ON ERROR RETURN: RETURN
11950 IF MN$="" THEN 11700
12000 MN=LEN(MN$)
12100 ON ERROR GOSUB 65535
12110 IF ERROR=769 THEN CLOSE 3: ERROR=0: OPEN "I",3,N$: MF=MF+1
12200 IF MF=2 THEN CLOSE 3: PRINT "MESSAGE NOT FOUND": MF=0: OPEN "I",3,N$: ERROR=0: ON ERROR RETURN: GOTO 11700
12300 LINEINPUT#3,T$: T=LEN(T$): IF ERROR THEN 12110
12400 T77$=LEFT$(T$,4): IF T77$="NNNN" THEN T$=RIGHT$(T$,T-4): T=T-4
12500 MN1$=LEFT$(T$,MN): IF MN1$=MN$ THEN U$=M$: U=6: GOSUB 10100: A=13: ON CODE GOSUB 2020,2400 ELSE 12110
12600 GOSUB 3800
12700 LINEINPUT#3,T$: T=LEN(T$): IF ERROR THEN 12110
12800 T66$=LEFT$(T$,4): IF T66$="NNNN" THEN U$="NNNN+": U=5: GOSUB 10100: MF=0: PRINT: ERROR=0: ON ERROR RETURN: GOTO 11700
12900 IF T=0 THEN GOSUB 4100: GOTO 12700
13000 GOSUB 3800: IF ERRORTHEN 12110 ELSE 12700
13100 S$=S$+Z$: S$=RIGHT$(S$,SS)
13110 FOR IS=1 TO 4
13120 S$(IS)=RIGHT$(S$,SO(IS))
13130 IF S$(IS)=O$(IS) THEN F$=F$(IS): E=E(IS): ZZ$=MID$(S$,SS-SO(IS)+1,SO(IS)-1): PRINT#2,ZZ$;: O=2: IF PRT THEN P=1: LPRINT ZZ$;: GOTO 21100 ELSE 21100
13140 NEXT: RETURN
13200 S$=S$+Z$: S$=RIGHT$(S$,E): IF S$<>F$ THEN RETURN ELSE PRINT#2,Z$
13210 IF PRT AND P THEN LPRINT Z$;: P=0
13220 GOTO 21200
13700 DATA 04,13,17,20,09,00,26,11,15,18,31,31,12,03,28
13800 DATA 29,22,23,19,01,10,16,21,07,06,24,14,30,31,02
13900 DATA 27,25,05,03,25,14,09,01,13,26,20,06,11,15,18
14000 DATA 28,12,24,22,23,10,05,16,07,30,19,29,21,17,31,31,31,31,31
14300 DATA "HAM ","MARS","PRINTER OFF","SAVING TO DISK"
14400 DATA " "," ","USOS","N ","FF"
14500 DATA "RECEIVE ","KEYBOARD ","FILE XMIT ","TEST TAPE "
14600 DATA "QBF + FILE","BROADCAST ","MESSAGE NR","KYBD INT "
14700 DATA "SELCAL"," ","PRTSEL"
18000 DEF PAGE 0,0 TO 79,24: LOCATE 0,0,1,0,7: RETURN
19900 XR=POS(0): YR= FN CSRLIN
19920 IF W=2 THEN DEF PAGE 0,24 TO 79,24: LOCATE XS,YS,1,0,7: PRINT TEXT$;: GOTO 19940
19930 IF W=3 THEN DEF PAGE 0,YTB TO 79,23: LOCATE XT,YT,1,0,7: PRINT TEXT$;
19940 DEF PAGE 0,0 TO 79,YRCV: LOCATE XR,YR,1,0,7: RETURN